﻿using System;


namespace TopBuilds.Restaurant.Data
{
    public class Order
    {
        #region 属性
        private int _id;
        private int _billId;
        private int _productId;
        private int _count;
        private int _discount;
        private int _price;
        private int _businessState;
        private int _employeeId;
        private string _remark;
        #endregion

        #region 构造
        public Order()
        {
            //_id              = 0;
            _billId          = 0;
            _productId       = 0;
            _count           = 0;
            _discount        = 0;
            _price           = 0;
            _businessState   = 0;
            _employeeId      = 0;
            _remark          = null;
        }

        public Order(int billId)
        {
            _billId          = billId;
            _productId       = 0;
            _count           = 0;
            _discount        = 0;
            _price           = 0;
            _businessState   = 0;
            _employeeId      = 0;
            _remark          = null;

        }

        public Order(int billId, int productId)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = 0;
            _discount        = 0;
            _price           = 0;
            _businessState   = 0;
            _employeeId      = 0;
            _remark          = null;
        }

        public Order(int billId, int productId, int count)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = count;
            _discount        = 0;
            _price           = 0;
            _businessState   = 0;
            _employeeId      = 0;
            _remark          = null;
        }

        public Order(int billId, int productId, int count, int discount)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = count;
            _discount        = discount;
            _price           = 0;
            _businessState   = 0;
            _employeeId      = 0;
            _remark          = null;
        }

        public Order(int billId, int productId, int count, int discount, int price)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = count;
            _discount        = discount;
            _price           = price;
            _businessState   = 0;
            _employeeId      = 0;
            _remark          = null;
        }

        public Order(int billId, int productId, int count, int discount, int price, int businessState)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = count;
            _discount        = discount;
            _price           = price;
            _businessState   = businessState;
            _employeeId      = 0;
            _remark          = null;
        }

        public Order(int billId, int productId, int count, int discount, int price, int businessState, int employeeId)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = count;
            _discount        = discount;
            _price           = price;
            _businessState   = businessState;
            _employeeId      = employeeId;
            _remark          = null;
        }

        public Order(int billId, int productId, int count, int discount, int price, int businessState, int employeeId,string remark)
        {
            _billId          = billId;
            _productId       = productId;
            _count           = count;
            _discount        = discount;
            _price           = price;
            _businessState   = businessState;
            _employeeId      = employeeId;
            _remark          = remark;
        }
        #endregion

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int BillId
        {
            get { return _billId; }
            set { _billId = value; }
        }

        public int ProductId
        {
            get { return _productId; }
            set { _productId = value; }
        }

        public int Count
        {
            get { return _count; }
            set { _count = value; }
        }

        public int Discount
        {
            get { return _discount; }
            set { _discount = value; }
        }

        public int Price
        {
            get { return _price; }
            set { _price = value; }
        }

        public int BusinessState
        {
            get { return _businessState; }
            set { _businessState = value; }
        }

        public int EmployeeId
        {
            get { return _employeeId; }
            set { _employeeId = value; }
        }

        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

    }
}
